package com.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.bean.UserBean;

import java.time.LocalDate;
import java.util.List;

public interface IUserService {
    void add(UserBean user);
    void del(int id);
    void update(int id,String pwd);

    UserBean findById(int id);
    List<UserBean> findAll();
    List<UserBean> findByName(String name);
    List<UserBean> searchName(String name);

    List<UserBean> findByItem(String name, LocalDate startDate,LocalDate endDate);

    int PAGE_SIZE = 3;
    IPage<UserBean> cutAll(int pageNO);

    IPage<UserBean> cutByItem(int pageNO,String name,Integer startMoney,Integer endMoney);
}
